package com.calvin.combat.util;import java.util.ArrayList;import java.util.List;import android.app.Activity;public class ActivityCollection {	public static List<Activity> activities = new ArrayList<Activity>();	public static void addActivity(Activity activity) {		activities.add(activity);	}	public static void removeActivity(Activity activity) {		activities.remove(activity);	}	public static void finishALl() {		for (Activity activity : activities) {			if (!activity.isFinishing()) {				activity.finish();			}		}	}}